<?php

class m111121_021450_account_category_init extends CDbMigration {
	public function safeUp() {
		$this->addColumn('erp_account_token_category', 'initialDebit', 'decimal(16,2)');
		$this->addColumn('erp_account_token_category', 'initialCredit', 'decimal(16,2)');
		$this->createIndex('account_token_date', 'erp_account_token', 'tokenDate');
	}

	public function safeDown() {
		$this->dropColumn('erp_account_token_category', 'initialDebit');
		$this->dropColumn('erp_account_token_category', 'initialCredit');
		$this->dropIndex("account_token_date", 'erp_account_token');
	}
}
